package com.bsoft.gol.hcs.clinical.bean.req;

import com.bsoft.gol.hcs.clinical.bean.vo.MsgHeader;
import com.bsoft.gol.hcs.clinical.bean.vo.NotifyPrescription;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

@XmlRootElement(name = "BSXml")
public class NotifyReviewPrescription {
    private MsgHeader MsgHeader;
    private MsgBody MsgBody;

    @XmlElement(name = "MsgHeader")
    public com.bsoft.gol.hcs.clinical.bean.vo.MsgHeader getMsgHeader() {
        return MsgHeader;
    }

    public void setMsgHeader(com.bsoft.gol.hcs.clinical.bean.vo.MsgHeader msgHeader) {
        MsgHeader = msgHeader;
    }

    @XmlElement(name = "MsgBody")
    public NotifyReviewPrescription.MsgBody getMsgBody() {
        return MsgBody;
    }

    public void setMsgBody(NotifyReviewPrescription.MsgBody msgBody) {
        MsgBody = msgBody;
    }


    public static class MsgBody{
        private List<NotifyPrescription> PrescriptionList;

        @XmlElementWrapper(name = "PrescriptionLists")
        @XmlElement(name = "PrescriptionList")
        public List<NotifyPrescription> getPrescriptionList() {
            return PrescriptionList;
        }

        public void setPrescriptionList(List<NotifyPrescription> prescriptionList) {
            PrescriptionList = prescriptionList;
        }
    }
}